#!/bin/sh


TELNET="/usr/bin/telnet"
SH="/bin/sh"
GREP="/usr/bin/grep"
CUT="/usr/bin/cut"
SCRIPTPATH="/usr/home/lams/gmetric_scripts/ami-scripts"

$SH $SCRIPTPATH/asterisk_showchannels.sh | $TELNET  | $GREP channel | $CUT -d " " -f 1

